#include <stdio.h>
#include "func.h"

int main(int argc,char const *argv[])
{
    int passwd1=111;
    int pos1=111;
    int i=0;
    int passwd;
    int pos;
    scanf("%d",&passwd);
    scanf("%d",&pos);
        if(pos == pos1 && passwd1 == passwd)
        {
            printf("登录成功\n");
        }
        else 
        printf("账号或密码错误，请重新输入\n");
        if(pos != pos1 && passwd1 == passwd)
        {   
            
            scanf("%d",&passwd);
            scanf("%d",&pos);        
            if(pos == pos1 && passwd1 == passwd)
            {
            printf("登录成功\n");
            }
            else printf("账号或密码错误，请重新输入\n");
            if(pos != pos1 && passwd1 == passwd)
                {   
            
                    scanf("%d",&passwd);
                    scanf("%d",&pos);        
                    if(pos == pos1 && passwd1 == passwd)
                    {
                    printf("登录成功\n");
                    }
                    else {
                    printf("账号或密码错误，请重新输入\n");
                    printf("超过3次,请稍后再试\n");
                    }   
                }
        }

    return 0;
}